﻿@model P2PWeb.Models.Agent
@{
    ViewBag.Title = "UpdateAgentInfo";
    Html.EnableUnobtrusiveJavaScript(true);
}
@using P2PWeb.Controllers;
@using P2PWeb.Common;
<link href="~/Content/themes/base/jquery.ui.all.css" rel="stylesheet" />
<link href="@Url.Content("~/Content/borrow.css?ver=0.2")" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.10.4.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/app/InterestRate.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/app/Agent.js?ver=0.2")"></script>
<div class="main">
  <div class="main_top"><span class="main_top_right"></span></div>
     <div class="ouheeMain_box">
         <div class="loan_box">
            <h2 class="content_title ml_neg_75 png">代理商信息</h2>
               <div class="imhint">
                 请务必真实完善的填写资料.
              </div>  
               <div class="otit">
               代理商基本信息
             </div>
               @using (Html.BeginForm("UpdateAgent", "Agent"))
               {
                 @Html.AntiForgeryToken();

                <table class="omb30" cellpadding="0" cellspacing="0" border="0" width="100%">
                      <tbody> 
                        <tr> <table class="omb30" cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tbody>
                           <td class="td4">代理商名称：</td>
                            <td>@Html.TextBoxFor(m=>m.Name, new { @class = "input_text3 ots oaddress" })
                                @Html.ValidationMessageFor(m => m.Name)
                            </td>
                        </tr>
                         <tr>
                            <td class="td4">代理商地址：</td>
                            <td>
                               @Html.TextBoxFor(m=>m.Address,new {@class="input_text3 ots oaddress"})  
                               @Html.ValidationMessageFor(m=>m.Address)
                            </td>    
                        </tr>
                          <tr>
                              <td class="td4">代理商类型：</td>
                              <td>
                                 @Html.DropDownListFor(m=>m.AgentType,new[]
                                  {
                                       new SelectListItem(){ Selected=Convert.ToInt32(Model.AgentType)<1,Text="请选择",Value="-1"},
                                       new SelectListItem(){ Selected=Model.AgentType==AgentType.common.ToString(),
                                       Text=AgentType.common.GetDisplayName(),Value=((int)AgentType.common)+""},
                                  })
                              </td>
                          </tr>
                          <tr>
                              <td class="td4">分润比例：</td> 
                              <td>@Html.TextBoxFor(m=>m.Ratio,new {@class = "input_text3 ots"})
                                  @Html.ValidationMessageFor(m=>m.Ratio)
                              </td>
                          </tr>
                          <tr>
                              <td class="td4">网站地址：</td>
                              <td>@Html.TextBoxFor(m=>m.Url,new {@class = "input_text3 ots oaddress"})</td>
                         </tr>
                        
                    </tbody>
                   </table>
                   @Html.HiddenFor(m=>m.ID)
                   <div class="obtn02">
                    <span id="submitBtn" class="onext">保存</span><a href="/Agent/Index" class="opre">返回</a>
                  </div>
               }
              
        </div>
     </div>
</div>
